package com.xiaozhichao.javaapi.designpattern.factory.statictype;

import com.xiaozhichao.javaapi.designpattern.factory.MailSender;
import com.xiaozhichao.javaapi.designpattern.factory.Sender;
import com.xiaozhichao.javaapi.designpattern.factory.SmsSender;

/**
 * 静态工厂
 */
public class StaticFactory {

    public static Sender smsProduce(){
        return new SmsSender();
    }

    public static Sender mailProduce(){
        return new MailSender();
    }
}
